define([
  'text!' + ELMP.resource('components/upload/index.html', 'lib')
], function (temp) {
  'use strict'
  return {
    name: 'Upload',
    template: temp,
    data () {
      return {

      }
    },
    mounted () {
      $.el.util.writeCss(ELMP.resource('components/upload/index.css', 'lib'), '#upload')
    },
    methods: {
      onChange (file) {
        this.$emit('change', file)
      }
    }
  }
})
